﻿using NicoView.Model.Share.Browser;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NicoView.Model.Platform.Browsers
{
    public class NicoViewBrowsersFactory : INicoViewBrowsersFactory
    {

        private static NicoViewBrowsersFactory current = null;

        public static INicoViewBrowsersFactory Current
        {
            get
            {
                if (current == null)
                {
                    current = new NicoViewBrowsersFactory();
                }

                return current;
            }
        }



#if NETFX
        private NicoViewBrowser[] browsers = {new DefaultBrowser(),new InternetExplorer(),new FireFox(),new GoogleChrome()};

#elif NETFX_CORE || WINDOWS_PHONE

        private NicoViewBrowser[] browsers = { };
#endif

        public IEnumerable<INicoViewBrowser> CreateBrowsers()
        {
            return browsers;
        }


    }
}
